package com.lnsf.bookstore.web.borrow.service;

import com.github.pagehelper.PageInfo;
import com.lnsf.bookstore.web.book.vo.ApiBook;
import com.lnsf.bookstore.web.borrow.vo.ApiBorrow;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.List;
import java.util.Map;


public interface ApiBorrowService {

    int insert (ApiBorrow apiBorrow);

    List<ApiBorrow> queryListByUid(Map<String,Object> map);

    int queryTotal(Map<String,Object> map);

    int delete(Map<String,Object> map);

    int updateStatus(ApiBorrow apiBorrow);

    ApiBorrow queryObject(Integer borrowId);

    /**
     * 管理员批准借书
     * @param id
     */
    public void adminAllowBorrow(Integer id);

    /**
     * 管理员批准还书
     * @param id
     */
    public void adminAllowReturn(Integer id,Integer delayDay);





}
